/*
 * =====================================================================================
 *
 *       Filename:  ct_semaphore.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  04/16/2015 02:24:09 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Dellinger.Zhang (mn), rainxy2000@hotmail.com
 *        Company:  TD studio
 *
 * =====================================================================================
 */

#ifndef __CT_SEMAPHORE_H__
#define __CT_SEMAPHORE_H__

#include <semaphore.h>
class ct_semaphore
{
	public:
		ct_semaphore();
		virtual ~ct_semaphore();

	public:
		void wait();
		void release();

	private:
		sem_t m_hHandle;

};

#endif //__CT_SEMAPHORE_H__
